package com.lggry.innerclass;
//外部类
public class Outer {
    //成员内部类，无static修饰，属于外部类的对象持有的
    public class Inner extends Object{
        private String name;

        public Inner(){
            System.out.println("Inner name = " + name);
        }

        public Inner(String name){
            this.name = name;
            System.out.println("Inner(String name)");
        }
        public void show(){
            System.out.println("show");
        }
        public void getName(){
            return;
        }
        public void setName(String name){
            this.name = name;
        }
    }
}
